<template>
    <div class="menu_outer">
        <div class="menu">
            <div style="">
                <div class="fix_m">
                    <div @click="goPage('/notice/messages')" :class="{ active: path == '/notice/messages' }"> 通知私信</div>
                    <div @click="goPage('/notice/application')" :class="{ active: path == '/notice/application' }"> 申请管理
                    </div>
                    <div @click="goPage('/notice/report')" :class="{ active: path == '/notice/report' }"> 举报管理
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    name: "leftMenu",
    data() {
        return {
            list2: []
        };
    },
    props: {
        list: {
            type: Array,
            default: () => {
                return [{ id: 1, name: '主题阅读词' }, { id: 2, name: '少儿读物' }, { id: 3, name: '三国演义' }, { id: 4, name: '寒假补习' }]
            },
        }
    },
    computed: {
        path() {
            return this.$route.path
        }

    },
    mounted() {

    },
    methods: {
        goPage(url) {
            if (this.path != url) {
                this.$router.push(url)
            }
        },
    },
}
</script>
<style lang="scss" scoped>
.menu_outer {
    width: 9.38rem;
    height: 100%;
}

.menu {
    width: 9.38rem;
    height: 100%;
    background: #E7F1FE;
    padding: 30px 1.15rem;
    position: -webkit-sticky;
    left: 8.33rem;
    position: sticky;
    top: 128px;
    min-height: calc(100vh - 128px);
>div{
    position: sticky;top: 128px;
}
    .fix_m {

        >div {
            cursor: pointer;
            margin-bottom: 1.25rem;
            font-weight: 400;
            font-size: 1.25rem;
            color: #333333;

            &:hover {
                color: #1068E7;
            }
        }
    }

    .list {
        border-top: 0.01rem solid #CCCCCC;
        padding-top: 1.51rem;

        >div {
            cursor: pointer;
            margin-bottom: 1.25rem;
            font-weight: 400;
            font-size: 1.25rem;
            color: #333333;

            &:hover {
                color: #1068E7;
            }
        }
    }
}

.active {
    color: #1068E7 !important;
    font-weight: bold !important;
}
</style>